<head>
    <meta charset="UTF-8">
<title>算法训练 相邻字母</title>
<link rel="stylesheet" href="../css/main.css">
</head>
 <p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">【问题描述】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">从键盘输入一个英文字母，要求按字母的顺序打印出</span><span style="font-size:12.0pt">3</span><span lang="ZH-CN" style="font-size:12.0pt;
font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">个相邻的字母，指定的字母在中间。若指定的字母为</span><span style="font-size:12.0pt">Z</span><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">，则打印</span><span style="font-size:
12.0pt">YZA</span><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;
mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">，若为</span><span style="font-size:12.0pt">A</span><span lang="ZH-CN" style="font-size:12.0pt;
font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:
&quot;Times New Roman&quot;">则打印</span><span style="font-size:12.0pt">ZAB</span><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">。注意：需要区分大小写。</span><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt">&nbsp;</span></b></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">【输入格式】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">一行，仅包含一个英文字母。</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">&nbsp;</span></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:
宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">【输出格式】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-indent:21.0pt"><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;;mso-bidi-font-weight:bold">一行，包含三个字母。</span><span style="font-size:12.0pt;mso-bidi-font-weight:bold"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt">&nbsp;</span></b></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">【样例输入</span></b><b><span style="font-size:12.0pt">1</span></b><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt">a<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">&nbsp;</span></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">【样例输出</span></b><b><span style="font-size:12.0pt">1</span></b><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt">zab<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">&nbsp;</span></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">【样例输入</span></b><b><span style="font-size:12.0pt">2</span></b><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt">B<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">&nbsp;</span></p>
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:&quot;Times New Roman&quot;;
mso-hansi-font-family:&quot;Times New Roman&quot;">【样例输出</span></b><b><span style="font-size:12.0pt">2</span></b><b><span lang="ZH-CN" style="font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
&quot;Times New Roman&quot;;mso-hansi-font-family:&quot;Times New Roman&quot;">】</span></b><b><span style="font-size:12.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt">ABC<o:p></o:p></span></p>